<?php 

$online = Online::find()->top('10')->order('created desc')->getAll();
$this->_view['online'] = $online;

?>
<div class="m-right">
		<div class="Sbox applyWrap">
			<h2><i class="titIco"></i>快速申请贷款</h2>
			<div class="Sbox-bd">
			<form id="quickapply">
				<table cellspacing="0" cellpadding="0" border="0" width="100%">
					<tbody>
						<tr>
							<th>姓&nbsp&nbsp&nbsp&nbsp氏:</th>
							<td>
								<input type="text"  class="ipt" size="7" name="name">
								<label style="margin-left:5px">
									先生
									<input type="radio" checked="checked" value="先生" name="sex">
								</label>
								<label>
									女士
									<input type="radio"  value="女士" name="sex">
								</label>
							</td>
						</tr>
						<tr>
							<th>申请金额:</th>
							<td>
								<input type="text"  class="ipt"  name="balance" width="150">
								万元
							</td>
						</tr>
						<tr>
							<th>贷款类型:</th>
							<td>
								<select name="yongtu">
									<option vlaue="民间贷款">民间贷款</option>
									<option vlaue="信用贷款">信用贷款</option>
									<option vlaue="银行贷款">银行贷款</option>
									<option vlaue="房屋抵押">房屋抵押</option>
								</select>
							</td>
						</tr>
						<tr>
							<th>电话号码:</th>
							<td>
								<input type="text"  class="ipt"  name="mobile" width="150">
							</td>
						</tr>
					</tbody>
				</table></form>
				<a href="javascript:apply();" class="quickApply"></a>
			</div>
		</div>
		<div class="Sbox">
			<h2>最新咨询</h2>
			<div class="Sbox-bd listc">
				<ul>
				<?php foreach($online as $item):?>
					<li><span><?php echo date('Y-m-d',$item->created);?></span><a href="<?php echo url('online/index',array('id'=>$item->id))?>"><?php echo $item->title;?></a></li>
				<?php endforeach;?>
				</ul>
			</div>
		</div>
		<?php $this->_element('news') ?>
		<div class="Sbox tact">
			<h2>联系我们</h2>
			<div class="Sbox-bd">
				<dl>
					<dt>地址:</dt>
					<dd><?php echo $config['address']?></dd>
					<dt>联系电话:</dt>
					<dd><?php echo $config['tell']?></dd>
				</dl>
			</div>
		</div>
		<div class="side-ad">
			<a href="#"><img src="images/ad1.jpg" /></a>
		</div>
	</div>